package com.zhuiYun.project.api.dynamicAudit.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author mao
 * @date 4.5 14:03
 */

@ApiModel("动态审核类")
@Data
public class DynamicAuditModel implements Serializable {

    //主键id
    @ApiModelProperty("主键id新增时无需填写")
    private Integer id;

    //用户id
    @ApiModelProperty("用户id")
    private Integer userId;

    //用户名
    @ApiModelProperty("用户名")
    private String userName;

    //
    @ApiModelProperty("")
    private String rate;

    //评论内容
    @ApiModelProperty("评论内容")
    private String content;

    //商品id
    @ApiModelProperty("商品id")
    private Integer divId;

    //回复用户id
    @ApiModelProperty("回复用户id")
    private Integer replyUserId;

    //回复用户名
    @ApiModelProperty("回复用户名")
    private String replyUserName;

    //动态-图片id
    @ApiModelProperty("动态-图片id")
    private String imageId;

    //动态-内容
    @ApiModelProperty("动态-内容")
    private String dynamicContent;

    //动态审核状态
    @ApiModelProperty("动态审核状态")
    private Integer dynamicContentFlag;

    //评论时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @ApiModelProperty("评论时间")
    private Date commentTime;
}
